import java.util.Scanner;

public class PlantPizza {
    public static void main(String[] args) {
        Scanner input=new Scanner(System.in);
        System.out.println("请选择想要制造的披萨（1.培根披萨 2.海鲜披散）：");
        int num=input.nextInt();
        switch (num){
            case 1:
                System.out.print("请输入培根克数：");
                String gram=input.next();
                Pizza m=new BaconPizza(gram);
                String megas=m.showInfo();
                System.out.println(megas);
                break;
            case 2:
                System.out.print("请输入配料信息：");
                String burdening=input.next();
               Pizza n=new SeafoodPizza(burdening);

                System.out.println(n.showInfo());
                break;
            default:
                System.out.println("没有您要的披萨");
                break;
        }
    }
}
